const baseUrl = '/mogu'


const apiList= {
  Login: '/admin/adminLogin',
  Register:'/admin/Register',
  searchUser: '/admin/searchUser',
  UpdateUserInfo: '/admin/UpdateUserInfo',

  GetAllRole: '/admin/GetAllRole',
  getMenus: '/admin/getMenus',
  GetMenusByUser: '/admin/GetMenusByUser',
  addMenus:'/admin/addMenus',
  updateMenus:'/admin/updateMenus',
  deleteMenus:'/admin/deleteMenus',
  
  GetShopingCart: '/api/GetAllShopingCart',
  searchCart: '/admin/searchCart',

  addProduct: '/admin/addProduct',
  UpdateProduct: '/admin/UpdateProduct',
  GetProductHome: '/admin/GetProductHome',
  searchProductBuyContent:'/api/searchProductBuyContent',

  addProductImg: '/admin/addProductImg',
  GetProductImg: '/admin/GetProductImg',
  UpdateProductImg: '/admin/UpdateProductImg',
  deleteProductImg: '/admin/deleteProductImg',
    
  UpdateProductType: '/admin/UpdateProductType',
  GetProductType: '/admin/GetProductType',
  addProductType: '/admin/addProductType',

  addRole: '/admin/addRole',
  UpdateRole: '/admin/UpdateRole',
  removeRole: '/admin/removeRole',

  getSystemInfo: '/admin/getSystemInfo',
  UpdateSystemInfo: '/admin/UpdateSystemInfo',
  uploadFile: "/upload/file",
  
  searchBanner: '/admin/searchBanner',
  updateBannerInfo:'/admin/updateBannerInfo',
  addBanner: '/admin/addBanner',

  addPower: '/admin/addPower',
  GetPower:'/admin/GetPower',
  UpdatePower: '/admin/UpdatePower',
  getPowerMenus:'/admin/getPowerMenus',
  deletePower:'/admin/deletePower',
}
function dealApi() {
  for (const key in apiList) {
    if (Object.hasOwnProperty.call(apiList, key)) {
      apiList[key]=baseUrl+apiList[key]
    }
  }

  return apiList
}
export default dealApi()